Optimal. Leaf size=66 \[ -\frac {d \sin ^2(a+b x)}{4 b^2}+\frac {3 d \cos ^2(a+b x)}{4 b^2}+\frac {2 (c+d x) \sin (a+b x) \cos (a+b x)}{b}+c x+\frac {d x^2}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {4431, 3310} \[ -\frac {d \sin ^2(a+b x)}{4 b^2}+\frac {3 d \cos ^2(a+b x)}{4 b^2}+\frac {2 (c+d x) \sin (a+b x) \cos (a+b x)}{b}+c x+\frac {d x^2}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3310
Rule 4431
Rubi steps
\begin {align*} \int (c+d x) \csc (a+b x) \sin (3 a+3 b x) \, dx &=\int \left (3 (c+d x) \cos ^2(a+b x)-(c+d x) \sin ^2(a+b x)\right ) \, dx\\ &=3 \int (c+d x) \cos ^2(a+b x) \, dx-\int (c+d x) \sin ^2(a+b x) \, dx\\ &=\frac {3 d \cos ^2(a+b x)}{4 b^2}+\frac {2 (c+d x) \cos (a+b x) \sin (a+b x)}{b}-\frac {d \sin ^2(a+b x)}{4 b^2}-\frac {1}{2} \int (c+d x) \, dx+\frac {3}{2} \int (c+d x) \, dx\\ &=c x+\frac {d x^2}{2}+\frac {3 d \cos ^2(a+b x)}{4 b^2}+\frac {2 (c+d x) \cos (a+b x) \sin (a+b x)}{b}-\frac {d \sin ^2(a+b x)}{4 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.14, size = 46, normalized size = 0.70 \[ \frac {b (2 (c+d x) \sin (2 (a+b x))+b x (2 c+d x))+d \cos (2 (a+b x))}{2 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 54, normalized size = 0.82 \[ \frac {b^{2} d x^{2} + 2 \, b^{2} c x + 2 \, d \cos \left (b x + a\right )^{2} + 4 \, {\left (b d x + b c\right )} \cos \left (b x + a\right ) \sin \left (b x + a\right )}{2 \, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.99, size = 920, normalized size = 13.94 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 119, normalized size = 1.80 \[ -c x -\frac {d \,x^{2}}{2}+\frac {4 c \left (\frac {\cos \left (b x +a \right ) \sin \left (b x +a \right )}{2}+\frac {b x}{2}+\frac {a}{2}\right )}{b}+\frac {4 d \left (\left (b x +a \right ) \left (\frac {\cos \left (b x +a \right ) \sin \left (b x +a \right )}{2}+\frac {b x}{2}+\frac {a}{2}\right )-\frac {\left (b x +a \right )^{2}}{4}-\frac {\left (\sin ^{2}\left (b x +a \right )\right )}{4}-a \left (\frac {\cos \left (b x +a \right ) \sin \left (b x +a \right )}{2}+\frac {b x}{2}+\frac {a}{2}\right )\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 55, normalized size = 0.83 \[ \frac {{\left (b x + \sin \left (2 \, b x + 2 \, a\right )\right )} c}{b} + \frac {{\left (b^{2} x^{2} + 2 \, b x \sin \left (2 \, b x + 2 \, a\right ) + \cos \left (2 \, b x + 2 \, a\right )\right )} d}{2 \, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.21, size = 53, normalized size = 0.80 \[ c\,x+\frac {d\,x^2}{2}+\frac {\frac {d\,\cos \left (2\,a+2\,b\,x\right )}{2}+b\,\left (c\,\sin \left (2\,a+2\,b\,x\right )+d\,x\,\sin \left (2\,a+2\,b\,x\right )\right )}{b^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (c + d x\right ) \sin {\left (3 a + 3 b x \right )} \csc {\left (a + b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________